<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String username = (String)session.getAttribute("username");
	if(username == null || username.equals(""))response.sendRedirect("/main/index.do");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>实时交易</title>
<link rel="stylesheet" href="<s:url value="/mt4/style/style.css"/>"/>
<script src="<s:url value="/scripts/jquery/jquery-1.7.2.min.js"/>"></script>
<script src="<s:url value="/mt4/scripts/init.js"/>"></script>
<style>


</style>
<script>
var PATH = "<s:url value="/" />";
PATH = PATH.substring(0, PATH.length-1);
var debug = false;
var username = "<%=username%>";
function loginOut(){
	window.location.href = "<s:url value="/main/loginOut.do" />";
};
</script> 
<style>

</style> 
</head>
<body> 
<!-- main -->
<div id="main">
	<!-- top -->
    <div id="top">
    	<div class="prompt prompt_yellow">
		   <div class="prompt_content warningbox">  
		   		<label>帐户：</label><span id="username"></span>&nbsp;&nbsp;<a href="javascript:;" onclick="loginOut();">退出</a>&nbsp;&nbsp;
				<label>初始资产：</label><span>1000</span>&nbsp;&nbsp;&nbsp;&nbsp;
				<label>剩余资产：</label><span id="money"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<span class="sendOrderStatus">
					<label>交易状态：</label><span id="sendOrdersDiv">可交易</span>
				</span>
				<a href="javascript:;" class="prompt_cloose btn_style07" onclick="trade()" ><span id="startOrStop">状态：启用</span></a>
				
		   </div>   
		</div>
    </div>
    <!--// top -->
  
	<!-- nav -->
	<div class="clears"></div>
	<div class="nav"></div>
	<!--// nav -->

	<!-- content -->
	<div class="tab_one content">
    	<!-- left -->
		<div class="left">
             
            <div class="padder1 desktop">
                <div class="symbolDiv">
					<table class="symbolTbl" cellspacing="0">
						<tr>
							<th width="80px">商品</th>
							<th width="100px">卖价</th>
							<th width="100px">买价</th>
							<th width="100px">操作</th> 
						</tr>
						<tr id="EURUSD">
							<td class="name textLeft"></td>
							<td class="sellPrice textRight"></td>
							<td class="buyPrice textRight"></td>
							<td class="opt"></td>
						</tr>
						<tr id="USDJPY">
							<td class="name textLeft"></td>
							<td class="sellPrice textRight"></td>
							<td class="buyPrice textRight"></td>
							<td class="opt"></td>
						</tr>
						<tr id="GBPUSD">
							<td class="name textLeft"></td>
							<td class="sellPrice textRight"></td>
							<td class="buyPrice textRight"></td>
							<td class="opt"></td>
						</tr>
						<tr id="USDCAD">
							<td class="name textLeft"></td>
							<td class="sellPrice textRight"></td>
							<td class="buyPrice textRight"></td>
							<td class="opt"></td>
						</tr>
					</table>
                </div>
            </div>
		</div>
	    <!--// left -->
        <!-- right -->
		<div class="right">
            <div class="title_pc1">
            	<h1>
                	<A class="blue f14" 
            onclick="pgvSendClick({hottag:'ISD.SHOW.TUIJIAN.MORE'});changesTab('two');" 
            href="javascript:void(0);">订单列表</A>
	            </h1>
            	<span class="more">
                	<A class="blue" onclick="getHistory();" href="#ahc" >历史&nbsp;&gt;</A>
	            </span>
            </div>
      		<div class=padder3>
        		<div class="orderListDiv">
					<table class="orderList" cellspacing="0">
						<tr>
							<th width="100px">订单</th>
							<th width="50px">类型</th>
							<th width="50px">手数</th>
							<th width="80px">商品</th>
							<th width="100px">价位</th>
							<th width="100px">现价</th>
							<th width="80px">获利</th>
							<th width="80px">操作</th>
						</tr>
					</table>
				</div>
			</div>
			<div class=clears></div>
		</div>
        <!--// right -->
    </div>
    <!--// content -->
    
    <!-- content2 -->
    <div class="tab_one content">
		<div class=padder3>
			<div class="title_pc1">
            	<h1>
                	<A class="blue f14" 
            onclick="pgvSendClick({hottag:'ISD.SHOW.TUIJIAN.MORE'});changesTab('two');" 
            href="javascript:void(0);" name="ahc">订单历史</A>&nbsp;&nbsp;&nbsp;
            		<!--<span id="historyTotal"></span>-->
	            </h1>
            	<span class="more">
                	<A class="blue" onclick="getHistory();" href="javascript:;">刷新&nbsp;&gt;</A>
	            </span>
            </div>
       		<div class="orderHistoryDiv">
				<table id="orderHistoryTbl" class="orderHistory" cellspacing="0">
					<tr>
						<th width="10px"></th>
						<th width="100px">订单</th>
						<th width="50px">类型</th>
						<th width="50px">手数</th>
						<th width="80px">商品</th>
						<th width="100px">价位</th>
						<th width="100px">现价</th>
						<th width="80px">获利</th>
						<th width="150px">下单时间</th>
						<th width="150px">关闭时间</th>
					</tr>
				</table>
			</div>
		</div>
    </div>
    <!--// content2 -->
    
    <!-- foot -->
	<div class=foot>Copyright &copy; 亚舟投资 版权所有&nbsp;</div>
    <!--// content -->
</div>
<!--// main -->

</body>
</html>